x86: re-introduce map_domain_page() et al
authorJan Beulich <jbeulich@suse.com>
Wed, 23 Jan 2013 13:06:20 +0000 (14:06 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 23 Jan 2013 13:06:20 +0000 (14:06 +0100)
commit4b28bf6ae90bd83fd1113d8bdc53c3266ffeb328
tree43489d3149200ddb5e03ad01309023727326ff30
parenta8d2b06db7826063df9d04be9d6f928bf2189bd0
x86: re-introduce map_domain_page() et al

This is being done mostly in the form previously used on x86-32,
utilizing the second L3 page table slot within the per-domain mapping
area for those mappings. It remains to be determined whether that
concept is really suitable, or whether instead re-implementing at least
the non-global variant from scratch would be better.

Also add the helpers {clear,copy}_domain_page() as well as initial uses
of them.

One question is whether, to exercise the non-trivial code paths, we
shouldn't make the trivial shortcuts conditional upon NDEBUG being
defined. See the debugging patch at the end of the series.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/Makefile
xen/arch/x86/domain.c
xen/arch/x86/domain_page.c [new file with mode: 0644]
xen/arch/x86/mm.c
xen/include/asm-x86/config.h
xen/include/asm-x86/domain.h
xen/include/xen/domain_page.h